package model.tokens;

import java.util.Stack;

import model.semantics.LeftGroupNode;
import model.semantics.Node;

/**
 * Left parenthesis.
 */

public class LeftGroupToken<T> extends Token<T> {

	public LeftGroupToken(String label) {
		super(label);
	}

	@Override
	public void process(Stack<Token<T>> operatorStack, Stack<Node<T>> output) {
		shuntFunctionsToOutput(operatorStack, output);
		
		output.add(new LeftGroupNode<T>());
	}

}
